from django import forms
from models import Record

class RecordForm(forms.ModelForm):

    class Meta:
        model = Record
        widgets = {
            'meta_description': forms.Textarea(attrs={'cols': 50, 'rows': 3}),
            'meta_keywords': forms.Textarea(attrs={'cols': 50, 'rows': 3}),
            'story': forms.Textarea(attrs={'class': 'bbeditor'}),
            'views': forms.HiddenInput(),
            'rating': forms.HiddenInput()
        }